<!DOCTYPE html>
<html>
    <body>
        <script>
            var array = new Array();
            var i;
            array[0] = "array0";
            array[1] = "array1";
            array[2] = "array2";
            for(i = 0 ; i < array.length;i++){
                document.write(array[i]+"<br>");
            }
        </script>
    </body>
</html>